package cc.wanforme.st.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;

//@OpenAPIDefinition(security = SecurityRequirement(name = "Authorization"))
//@SecurityScheme(type = SecuritySchemeType.APIKEY, name = "Authorization", scheme = "Authorization", in = SecuritySchemeIn.HEADER)
@Configuration
public class OpenApiConfigSB3 {
	private String title = "SpringDoc API";
	private String description = "SpringDoc Application";
	private String version = "v0.0.1";

	@Bean
	public OpenAPI springOpenAPI() {
		return new OpenAPI().info(
				new Info()
				.title(title)
				.description(description)
				.version(version)
			);
	}
}
